package com.work.demo.entity;

import java.util.List;

public class ArrayTest {

	private Cache cache = new Cache();

	public List<String> test() {
		for (int i = 0; i < 1; i++) {
			cache.addTotal(i + "");
		}
		return cache.getTotalSize();
	}

	public List<String> test2() {
		for (int i = 0; i < 1; i++) {
			cache.addIncr(i + "");
		}
		return cache.getIncrSize();
	}

	public List<String> test3() {
		return cache.getTotalSize();
	}


	public static void main(String[] args) {
		ArrayTest arrayTest = new ArrayTest();
		List<String> test = arrayTest.test();
		List<String> test2 = arrayTest.test2();
		System.out.println(test.size());


		test.addAll(test2);
		System.out.println(arrayTest.test().size());

		System.out.println(arrayTest.test3().size());
	}
}
